<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        div {
            background-color: blue;
        }

        iframe {
            background-color: red;
            /* 外边距 */
            margin: 20px;
            /* 内边距 */
            padding: 20px;
            /* 边框 */
            border: 2px dotted orange;
        }
    </style>

</head>

<body>

    <div>
        <iframe src="table.html" frameborder="0" width="100%" height="200px" scrolling="no"></iframe>
    </div>
    <br>

    <iframe src="" frameborder="0"></iframe>

    <!-- doc:document 源码 -->
    <iframe src="" frameborder="0" srcdoc="<button>你过来呀。</button>"></iframe>

    <br>

    <!-- 由于跨域导致跨域地址禁止访问 -->
    <iframe src="https://www.baidu.com" frameborder="0"></iframe>
    <br>
    <iframe src="../table/table.html" frameborder="0" width="100%" height="200px"></iframe>
    <br>
    <iframe src="../table/table.html" frameborder="0" width="100%" height="200px" seamless></iframe>
    <br>
    <iframe src="table.html" frameborder="0" width="100%" height="200px" seamless="seamless"></iframe>

    <!-- iframe: 不推荐使用该元素 -->

</body>

</html>